const imageConvertoBase64 = file => new Promise((resolve, reject) => {
  const reader = new FileReader();
  reader.readAsDataURL(file);
  reader.onload = function () { resolve(this.result); };
  reader.onerror = reject;
});

export default {
  imageConvertoBase64,
};
